Skip to content

Conversation

@Knerio
Copy link
Member

@Knerio Knerio commented Dec 4, 2025

No description provided.

@Knerio Knerio self-assigned this Dec 4, 2025
@Knerio Knerio requested review from Taucher2003 and Copilot and removed request for Taucher2003 December 4, 2025 20:52
Copilot finished reviewing on behalf of Knerio December 4, 2025 20:54
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR addresses authorization inconsistencies and improves the GraphQL API structure for runtime-related types. The changes standardize authorization from read_flow to read_runtime for runtime components, fix the authorization name from read_datatype to read_data_type, rename fields for better clarity, and add missing relationships to the schema.

Key changes:

  • Corrected authorization requirements from read_flow to read_runtime for RuntimeFunctionDefinition and RuntimeParameterDefinition types
  • Fixed authorization name from read_datatype to read_data_type in DataTypeType
  • Renamed runtime_parameter_definitions field to parameters in RuntimeFunctionDefinition for improved API clarity
  • Added identifier field to RuntimeParameterDefinition and runtimeFunctionDefinitions field to Runtime
  • Increased default pagination size from 50 to 120

Reviewed changes

Copilot reviewed 15 out of 15 changed files in this pull request and generated no comments.

Show a summary per file
File Description
app/policies/runtime_policy.rb Added policy rule enabling read_data_type when user can read_runtime
app/policies/runtime_parameter_definition_policy.rb New policy file delegating authorization to parent runtime_function_definition
app/graphql/types/runtime_type.rb Added runtime_function_definitions field to expose runtime functions
app/graphql/types/runtime_parameter_definition_type.rb Changed authorization from read_flow to read_runtime and added identifier field
app/graphql/types/runtime_function_definition_type.rb Changed authorization from read_flow to read_runtime and renamed runtime_parameter_definitions to parameters
app/graphql/types/data_type_type.rb Fixed authorization name from read_datatype to read_data_type
app/graphql/sagittarius_schema.rb Increased default pagination size from 50 to 120 items
spec/graphql/types/runtime_type_spec.rb Updated test to include new runtimeFunctionDefinitions field
spec/graphql/types/runtime_parameter_definition_type_spec.rb Updated authorization expectation to read_runtime and added identifier field
spec/graphql/types/runtime_function_definition_type_spec.rb Updated authorization expectation to read_runtime and field name to parameters
docs/graphql/object/runtimeparameterdefinition.md Documented new identifier field
docs/graphql/object/runtimefunctiondefinition.md Updated field name from runtimeParameterDefinitions to parameters
docs/graphql/object/runtime.md Documented new runtimeFunctionDefinitions field
docs/graphql/object/runtimefunctiondefinitionedge.md New documentation for edge type
docs/graphql/object/runtimefunctiondefinitionconnection.md New documentation for connection type

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@github-actions
Copy link

github-actions bot commented Dec 4, 2025

GitLab Pipeline Action

General information

Link to pipeline: https://gitlab.com/code0-tech/development/sagittarius/-/pipelines/2198395279

Status: Passed
Duration: 5 minutes

Job summaries

rspec: [ee]

Coverage report available at https://code0-tech.gitlab.io/-/development/sagittarius/-/jobs/12337185206/artifacts/tmp/coverage/index.html
Test summary available at https://gitlab.com/code0-tech/development/sagittarius/-/pipelines/2198395279/test_report
Finished in 19.79 seconds (files took 10.94 seconds to load)
1279 examples, 0 failures
Line Coverage: 91.3% (4420 / 4841)
[TEST PROF INFO] Time spent in factories: 00:11.141 (42.24% of total time)

rspec: [ce]

Coverage report available at https://code0-tech.gitlab.io/-/development/sagittarius/-/jobs/12337185204/artifacts/tmp/coverage/index.html
Test summary available at https://gitlab.com/code0-tech/development/sagittarius/-/pipelines/2198395279/test_report
Finished in 20.79 seconds (files took 12.8 seconds to load)
1232 examples, 0 failures
Line Coverage: 90.74% (4252 / 4686)
[TEST PROF INFO] Time spent in factories: 00:11.301 (40.65% of total time)

rubocop

718 files inspected, no offenses detected

Knerio and others added 2 commits December 5, 2025 14:41
Co-authored-by: Niklas van Schrick <[email protected]>
Signed-off-by: Dario Pranjic <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants